package com.lagou.edu.user.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liangzj
 * @date 2021/6/27 9:08
 */
@RefreshScope
@RestController
@RequestMapping("/config")
public class ConfigReadController {

//    @Value("${lagou.message}")
//    private String message;
//    @Value("${mysql.url}")
//    private String mysqlUrl;

//    @GetMapping("/read")
//    public String read() {
//        return message + ";" + mysqlUrl;
//    }

}
